﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web.Mvc;
using JXT.PrimaryKey.Batman.Core.Language;
using JXT.PrimaryKey.Batman.Core.Extensions;
using JXT.PrimaryKey.Batman.Web.Mvc.Models;
using JXT.PrimaryKey.Batman.Core.Security;
using JXT.PrimaryKey.Batman.Web.Mvc.Filters;
using JXT.PrimaryKey.Batman.Web.Mvc.Results;
using System.Web;

namespace JXT.PrimaryKey.Batman.Web.Mvc.Controllers
{
    public class MainController : BaseController
    {
        [HttpGet]
        [ActionName("verifycode")]
        public ActionResult VerifyCode(string code)
        {
            var verifyCodeResult = new VerifyCodeResult();
            if (String.IsNullOrEmpty(code))
                code = verifyCodeResult.Code;
            else
                verifyCodeResult.Code = code;
            WriteVerifyCode(code);
            return verifyCodeResult;
        }

    }
}
